<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>

<html>

 <head>
    
    <title>其他出库单选择</title>
    <!-- import css and js -->
	<%@ include file="/common/meta.jsp" %>

		<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript">
		var basic_Url="${ctx}/public/windowalert";
		var show_Width=950;
		var show_Hight=400;
		var user='${user.name}';
		var grid='';
		$(function(){
			grid = $("#table1").ligerGrid({
		        columns: [
		                  { display: '出库单号', name: 'zd002BackCode', width: 200 },
		                  { display: '出库仓库', name: 'zd004WhName', width: 200},
		                  { display: '出库时间', name: 'zd009Date', width: 200,
		                	  render: function (item){
		                		  var cdate=new Date(item.zd009Date);
		                		  return formatDate(cdate,"yyyy-MM-dd");
		                	  }
		                  },
		                  { display: '制单人', name: 'zd006Aegntt', width: 200 }
		                  ],  usePager: true,pageSize:30,
		                      url : basic_Url+"/checkbackList.do?type="+'${type}',
		                      width: '100%', height: '98%', checkbox: true,rownumbers:true,
		                      enabledSort:false
		                  });
			$("#pageloading").hide();
		});
		function createSearch(){
			init(1,8,'100,100,100,100,100,100,100,100','25%');
			//第一行的数据
			addCommon(0,0,"lable","出库单号");
			addCommon(0,1,"txtlike","zd001OutCode");
			addCommon(0,2,"lable","出库仓库：");
			addCommon(0,3,"selectEnum","zd004WhCode","<option></option><c:forEach var='s' items='${wh}'><option value='${s.zd002Code}'>${s.zd003Name}</option></c:forEach>");
			addCommon(0,4,"lable","制单人");
			addCommon(0,5,"txtlike","zd006Aegnt");
		}
		function searchAP(){			
			multipleSearch("#table1",true,"",basic_Url+"/checkbackList.do?type="+'${type}');
		}
		document.onkeydown=keyListener;   
		function keyListener(e){   
		    e = e ? e : event;  
		    if(e.keyCode == 13){   
		    	searchAP();
		    }   
		}  
		function getSelected(){
			return grid.getSelectedRows();
		}
		function Close(){
			CloseDialog();
		}
	</script>
  </head>
<body onload="createSearch()">
   <div id="layout1">
          <div id="pageHeader" class="pageHeader">
               <div class="searchBar" id="multipleSearchDialog">
	                <table class="table" width="100%" id="searchHeader" >  
                        <tbody id="newbody">
                        </tbody>
 	                </table>
                    <div class="subBar">
			             <ul>
				             <li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="btnSearch" onclick="searchAP()">查询</button></div></div></li>
				             <li><a class="button" onclick="clearSearch()"><span>重置</span></a></li>
			             </ul>
	                </div>
               </div>
          </div>
      </div>
      <div position="center" id="table1">
      </div>
      <div class="clear"></div>
   </div>
 
</body>
</html>